﻿@model Vcare.Models.Rates

@{
    ViewBag.Title = "Edit";
}


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend style="width:500px;">Create Fee :  @ViewBag.CallCentre</legend>

        @Html.HiddenFor(model => model.RatesID)
        @Html.HiddenFor(model => model.CallCentreID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="spacer"></div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Fee)
        </div>
        <div class="editor-field">
            ?@Html.EditorFor(model => model.Fee)
            @Html.ValidationMessageFor(model => model.Fee)
        </div>
        <div class="spacer"></div>

        <div class="editor-label">
            <label>Period</label>
        </div>
        <div class="editor-field">
            <input type="radio" name="period" value="Annual" @(Model.Annual==true ? "checked" : "")>Annual<br />
            <input type="radio" name="period" value="Quarterly" @(Model.Quarterly==true ? "checked" : "")>Quarterly<br />
            <input type="radio" name="period" value="Monthly" @(Model.Monthly==true ? "checked" : "")>Monthly
        </div>
        <div class="spacer"></div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
